<template>
	<view class="index">
		<template v-if="BiaoQing_LieBiao.length">
			<view
				v-for="item in BiaoQing_LieBiao"
				@click="DianJi_XuanZe_BiaoQing(item)"
				class="XunHuan">{{item}}</view>
		</template>
		<template v-else>
			<YouRan-UI-JiaZaiZhong LeiXing="QuanPing"></YouRan-UI-JiaZaiZhong>
		</template>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				BiaoQing_LieBiao:[]
			}
		},
		onLoad(e) {
			this.ShiFou_ZuJian_GuoLai_De = e.LeiXing;
			this.QingQiu_QuanJu_PeiZhi();
		},
		methods: {
			QingQiu_QuanJu_PeiZhi(){
				uni.request({
					url:this.$_PeiZhi_WenJian() + "QuanJu.json",
					method:'GET',
					success: (res) => {
						this.BiaoQing_LieBiao = res.data.TongYong_BiaoQing_LieBiao;
					}
				})
			},
			DianJi_XuanZe_BiaoQing(e){
				uni.setStorage({
					key: 'XuanZhong_BiaoQing',
					data: e,
					success: (res) => {
						if(this.ShiFou_ZuJian_GuoLai_De){
							uni.$emit('BiaoQing_LieBiao_HuiTiao')
						}
						uni.navigateBack();
					}
				});
			},
		}
	}
</script>

<style lang="scss">
.index{
	display: flex;
	flex-wrap: wrap;
	.XunHuan{
		width: 75rpx;
		height: 75rpx;
		display: flex;
		align-items: center;
		justify-content: center;
		font-size: 40rpx;
		box-shadow: 0 0 1rpx $BianKuangSe;
	}
}
</style>
